package com.studyprojectbacked.service;

import com.studyprojectbacked.entity.dto.RegisterAccount;
import org.springframework.security.core.userdetails.UserDetailsService;

public interface AuthorizeService extends UserDetailsService {
  // 发送验证码到邮箱
  String sendCodeToEmail(String email, String sessionId, boolean hasAccount);

  String validateAndRegister(RegisterAccount ra, String sessionId);

  String validateCode(String email, String code, String sessionId);

  boolean resetPassword(String password, String email);
}
